//
//  Fuction.m
//  C07_指针
//
//  Created by dllo on 15/11/25.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import "Fuction.h"
void sortArr(int *array, int count){
    
    int temp = 0;
    for (int i = 0; i < count - 1; i++) {
        for (int j = 0; j < count - 1 - i; j++) {
            if (*(array + j) > *(array + j + 1)) {
                temp = *(array + j);
                *(array + j) = *(array + j + 1);
                *(array + j + 1) = temp;
            }
        }
    }
    for (int i = 0; i < count; i++) {
        printf("%d\n",*(array + 1));
    }
}








void exchangeTwoNumber(int * x, int * y){
    
    int temp = *x;
    *x = *y;
    *y = temp;
}


